package com.youxin.busfoundation.enums;

/**
 * 业务系统标识
 * @author yingde.cao
 *
 */
public enum SystemType {
	/**
	 * PC版
	 */
	PC(1,"LOGPC"),
	/**
	 * OA系统
	 */
	OA(2,"LOGOA"),
	/**
	 * 企业版
	 */
	CP(3,"LOGCP")
	;
	
	public int getValue() {
		return value;
	}
	private String name;
	private int value;
	private SystemType(int value,String name) {
		this.value = value;
		this.name=name;
	}
	
	public String getName() {
		return name;
	}

	public static SystemType valueOf(int val)
	{		
		for(SystemType m : SystemType.values()) 
		{
			if(val==m.getValue())
				return m;
	    }
		return null;
	}
	
}
